package com.wtwd.campus.service;

import com.wtwd.campus.entity.FenceInfo;
import com.wtwd.campus.entity.H5Fence;

import java.util.List;
import java.util.Map;

public interface FenceInfoService {
    //新增围栏
    Integer addFence(FenceInfo fenceInfo);
    //条件查询围栏信息
    Map<String,Object> queryFenceList(String orgCode,String name,Integer currPage,Integer pageSize);
    //修改围栏信息
    Integer modifyFenceInfo(FenceInfo fenceInfo);
    //删除围栏信息
    Integer deleteFenceInfo(Integer fenceId);
    //根据设备imei获取所属于的围栏信息
    List<FenceInfo> getFenceInfoByDeviceId(Integer deviceId);
    //根据学生id查询围栏
    List<FenceInfo> getFenceInfoListByStuId(Integer stuId);
    //根据围栏id查询围栏
    FenceInfo getFenceInfoById(Integer id);
    //微信端新增围栏
    Integer addWxFence(FenceInfo fenceInfo);
    //修改微信围栏信息
    Integer modifyWxFenceInfo(FenceInfo fenceInfo);
    //根据设备id获取h5的围栏
    List<H5Fence> getH5FenceByDeviceId(Integer deviceId);
    //根据id查询h5围栏
    H5Fence getH5FenceById(Integer id);
    //根据客户id查询h5围栏
    H5Fence getH5FenceByCusIdAndId(Integer userId,Integer id);
    //根据id删除h5围栏
    Integer deleteH5FenceById(Integer id);
    //根据设备imei获取h5的围栏
    List<H5Fence> getH5FenceByImei(String imei);
    //根据围栏id修改h5围栏
    Integer modifyH5FenceById(H5Fence h5Fence);
    //新增h5围栏
    Integer addH5Fence(H5Fence h5Fence);

}
